package com.aliyun.messagemgt.application.service;

import com.aliyun.messagemgt.dto.BaseMessageSourceDto;
import com.aliyun.messagemgt.dto.base.BaseMessageSourceDTO;
import com.aliyun.messagemgt.dto.query.BaseMessageSourceQuery;

/**
 * @author yangshaobo
 * @date 2021年10月14日
 */
public interface BaseMessageSourceService {

    /**
     * 查询列表
     * @param baseMessageSourceQuery
     * @return
     */
    Object listBaseMsgSource(BaseMessageSourceQuery baseMessageSourceQuery);

    /**
     * 启停用
     * @param baseMessageSourceDto
     * @return
     */
    Object isEnabled(BaseMessageSourceDto baseMessageSourceDto);

    /**
     * 查询日志
     * @param messageSourceQuery
     * @return
     */
    Object queryLog(BaseMessageSourceQuery messageSourceQuery);

    /**
     * 根据租户编码、场景编码查询场景信息
     * @param tenantCode
     * @param sceneCode
     * @return
     */
    BaseMessageSourceDTO getByTenantCodeAndSceneCode(String tenantCode, String sceneCode);
}
